<?php

class car {
	public $carMode;
	public $carBand;
	public $Speed;
	public $weight;

	function getweight(){
		return $this ->weight;
	}
	function getSpeed(){
		return $this ->Speed;
	}
	
}
	
$car1 = new car();
$car1 ->carMode = "捷达";
$car1 ->carBand = "大众";
$car1 ->Speed = 160;
$car1 ->weight = 1.5;
	echo $car1->getweight();
	echo '</br>';
	echo $car1->Speed;
?>